package com.candoit.webapps.pricing.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "tipo_materia_prima")
public class TipoMateriaPrima implements Serializable {
	
	private static final long serialVersionUID = -5580160953360065090L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Integer id;
	
	@Column(name = "descripcion")
	private String descripcion;
	
	@ManyToOne
	@JoinColumn(name="tipo_linea", referencedColumnName="id")
	private TipoLinea tipo;
	
	public static final Integer MO_IMPRESION = 8;
	
	public static final Integer MO_CONFECCION = 9;
	
	public static final Integer MO_EMPAQUE = 10;
	
	public static final Integer MO_TROQUELADO = 14;
	
	public static final Integer MO_GUILLOTINA = 15;
	
	public static final Integer PAPEL = 1;
	
	public static final Integer MODULO = 2;
	
	public static final Integer CARTULINA = 12;
	
	public static final Integer MO_ARMADO = 16;
	
	public static final Integer FONDO = 13;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescripcion() {
		return descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

	public TipoLinea getTipo() {
		return tipo;
	}

	public void setTipo(TipoLinea tipo) {
		this.tipo = tipo;
	}
	
	@Override
	public String toString(){
		return this.descripcion;
	}
}
